<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text"
				value="{$row.title|htmlentities}">
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Parent')}:</label>
		<div class="col-xs-12 col-sm-8">
			{:build_select('row[pid]', $categorydata, null, ['class'=>'form-control', 'required'=>''])}
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-icon" class="form-control" name="row[icon]" type="text" value="{$row.icon|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Cat')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-cat" data-rule="required" min="0" class="form-control" name="row[cat]" type="number"
				value="{$row.cat|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-status" data-rule="required" min="0" class="form-control" name="row[status]" type="number"
				value="{$row.status|htmlentities}">
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-weigh" class="form-control" name="row[weigh]" type="text" value="{$row.weigh|htmlentities}">
		</div>
	</div>
	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
		</div>
	</div>
</form>